﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.Security.Cryptography;

public partial class _Default : System.Web.UI.MasterPage
{
    /// <summary>
    /// 页面载入事件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        this.WebPartManager1.DisplayMode = WebPartManager.BrowseDisplayMode;//设置webPart显示模式
        //if (Session["UserID"] != null)//如果用户已登陆
        //{
        //    this.Label1.Text = Session["UserName"].ToString();//显示用户名
        //    LinkButton1.Text = "点击这里注销";//改变登陆按钮状态
        //}
    }

    /// <summary>
    /// 主题列表更改
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void ddlThemes_SelectedIndexChanged(object sender, EventArgs e)
    {
        Session["myTheme"] = ddlThemes.SelectedValue.ToString();//将设置的主题保存至会话中
    }

    /// <summary>
    /// 显示登陆窗按钮点击
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void LinkButton1_Click(object sender, EventArgs e)
    {

    }

    /// <summary>
    /// 登陆按钮点击
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Login_Click(object sender, EventArgs e)
    {

    }
}
